package vn.edu.saigontech.ncms.service;

import java.util.Date;
import java.util.List;

import vn.edu.saigontech.ncms.model.bookstore.Item;
import vn.edu.saigontech.ncms.model.bookstore.OrderDetail;
import vn.edu.saigontech.ncms.service.impl.OrderDetailServiceImpl;

public interface OrderDetailService extends GenericService<OrderDetail, Long> {
	static final OrderDetailService INSTANCE = new OrderDetailServiceImpl();
	
	int sumOfOrder(Item item, Date toDate, boolean includeToDate);
	
	List<OrderDetail> findByDate(Item item, Date fromDate, Date toDate);
}